package com.googlecode.framework.core.pagination;


public abstract class AbstractPagination implements Pagination {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 2260845757039612454L;
    
    protected Paginator paginator;
    
    public AbstractPagination(Paginator paginator) {
        this.paginator = paginator;
    }

    @Override
    public int getOffset() {
        return paginator.getOffset();
    }

    @Override
    public int getLength() {
        return paginator.getLength();
    }

    @Override
    public int setItems(int items) {
        return paginator.setItems(items);
    }

    @Override
    public int getItems() {
        return paginator.getItems();
    }
}
